<?php
	include_once("../service/productService.php");
	$keyword = $_POST['keyword'];
	$id = $_POST['ids'];
	$result = getRelatedProductByKeyword($keyword, $id);
	$htmlString = "";
	while ($row = ConnectionManager::getInstance()->fetchArray($result)) {
		$htmlString = $htmlString . "<option value='". $row['PRO_ID'] . "'>" . $row['PRO_NAME'] . "</option>";
	}
	echo($htmlString);
?>